<div class="list-content">
    <div class="title-content">
        <div class="title-name">
            <h2>
                <img src="<?php echo base_url("public/template/frontend/images") ?>/title-pro.png" alt="title">
                ĐƠN HÀNG
            </h2>
            <span>&nbsp;</span>
        </div>                                                      
    </div><!--title-content-->
    <div class="clear-both"></div>
    <div class="main-content">
        <?php
        if(isset($order) && !empty($order)){
        ?>
        <table class="order" border="1">
            <tr>
                <th>Trạng thái</th>
                <th>Tên khách hàng</th>
                <th>Số điện thoại</th>
                <th>Địa chỉ</th>
                <th>Ngày giao hàng</th>
                <th>Tổng tiền</th>
            </tr>
            <tr>
                <td><?php if($order->status == 0) echo "Đang xử lý"; ?></td>
                <td><?php echo $order->name;?></td>
                <td><?php echo $order->phone;?></td>
                <td><?php echo $order->address;?></td>
                <td><?php echo $order->deli_date;?></td>
                <td><b><?php echo number_format($order->total);?> đ</b></td>
            </tr>
        </table>
        <p>
        <h2>Sản phẩm</h2>
        </p>
        <table class="order" border="1">
            <tr>
                <th>Tên sản phẩm</th>
                <th>Kích thước</th>
                <th>Màu</th>
                <th>Phụ kiện</th>
                <th>Số lượng</th>
                <th>Thành tiền</th>
            </tr>
            <?php
            foreach($items as $item){
            ?>
            <tr>
                <td><?php echo $item->name;?></td>
                <td><?php echo $item->size;?> cm</td>
                <td><?php echo $item->color;?></td>
                <td><?php echo $item->bonus;?></td>
                <td><?php echo $item->qty;?></td>
                <td><b><?php echo number_format($item->subtotal);?> đ</b></td>
            </tr>
            <?php
            }
            ?>
        </table>
        <?php
        }
        ?>
    </div><!--main-content-->                        
</div><!--list-content-->